package com.adopt.service;

import com.adopt.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersService {


    int addUser(Users user);

    int deleteUser(Integer id);

    int updateUser(Users user);
    List<Users> getUsers();

    Users findById(Integer id);

    List<Users> findByName(String userName);

    Users loginUser(Users users);

    void deleteBatch(@Param("ids")List<Integer>ids);
}
